package com.hzdl.car.service.impl;

import com.hzdl.car.bean.Car;
import com.hzdl.car.bean.CarRentInfo;
import com.hzdl.car.bean.CarReturn;
import com.hzdl.car.bean.Customer;
import com.hzdl.car.mapper.CarReturnMapper;
import com.hzdl.car.service.CarReturnService;
import com.hzdl.car.vo.CarReturnVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CarReturnServiceImpl implements CarReturnService {

    @Autowired
    private CarReturnMapper crm;
    @Override
    public CarRentInfo findCheck(String rentid) {
        return crm.findCheck(rentid);
    }

    @Override
    public CarReturn findCheck1(String rentid) {
        return crm.findCheck1(rentid);
    }

    @Override
    public Car findCheck2(String carnumber) {
        return crm.findCheck2(carnumber);
    }

    @Override
    public Customer findCheck3(String identity) {
        return crm.findCheck3(identity);
    }

    @Override
    public int updateCarInfo(String carnumber) {
        return crm.updateCarInfo(carnumber);
    }

    @Override
    public int updateCarRentInfo(String rentid) {
        return crm.updateCarRentInfo(rentid);
    }

    @Override
    public int insertCheck(CarReturnVo carReturnVo) {
        return crm.insertCheck(carReturnVo);
    }
}
